﻿<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>test</title>
<script>

var jQuery = 1;
(function(){
    jQuery = window.jQuery = window.$ = function(){};
})()
alert(jQuery); 						// 结果读取了函数内部封装的代码


</script>
</head>
<body>
</body>
</html> 
